package main

import "fmt"

// 删除数组中某元素
func main() {
	yy := make([]int, 0, 111)
	if yy == nil {
		fmt.Println("1111")
		return
	}
	testAppend()

	pRange()

	//s := make([]string, 10)
	s := []string{
		"11111",
		"111112222",
		"111112222333",
		"111112222333444",
		"111112222333444555",
		"111112222333444555666",
	}
	x := "111112222"
	for k, v := range s {
		if v == x {
			fmt.Println(v)
			s = append(s[0:k], s[k+1:]...)
			break
		}
	}

	_ = make([]int, 1, 3)

	fmt.Println(s, s[0:0])
}

func pRange() {
	x := []string{"111", "44444"}
	for _, k := range x {
		fmt.Println(k)
	}
}

func testAppend() {
	var b []uint64
	a := make([]uint64, 0)
	a = append(a, b...)
	a = append(a, text1()...)
}

func text1() []uint64 {
	return nil
}
